package com.atguigu.gulimall.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 1、想要调用别的服务
 * 2、引入open-feign
 * 3、编写一个接口，告诉spring-cloud这个接口需要调用远程服务
 *      声明接口的每个方法是调用那个远程服务那个请求
 * 4、开启远程调用功能
 */
@EnableFeignClients(basePackages = "com.atguigu.gulimall.member.feign")  //开启feign 远程调用
@EnableDiscoveryClient //注册发现nacos
@SpringBootApplication
public class GulimallMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallMemberApplication.class, args);
    }

}
